<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <script>
        
        //1.多行字符串 - 换行拼接  <ul><li>1</li><li>2</li></ul>
        let ulStr = '<ul>'+
                       '<li>1</li>'+
                       '<li>2</li>'+
                    '</ul>';
        let ulStr1= `我是阿飘!!`;
        let ulStr2= `<ul>
                        <li>1</li>
                        <li>2</li>
                     </ul>`;

        //2. 更方便进行字符拼接
        //前端 -> url -> java api http://lease.atguigu.com/app/apartment/detail?id=1
        let id = 1;
        let apiStr = 'http://lease.atguigu.com/app/apartment/detail?id='+id;
        let apiStr1 = `http://lease.atguigu.com/app/apartment/detail?id=${id}`;

        //rest路径  http://localhost/admin/{typeId}/{cId};
        let typeId = 1;
        let cId = 2;
        let apiStr2 = 'http://localhost/admin/'+typeId+'/'+cId;
        let apiStr3 = `http://localhost/admin/${typeId}/${cId}`;


    </script>
</body>
</html>